/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.component.gateway.dianlan.facade.command.order;

import info.peigen.hotpot.component.gateway.dianlan.facade.command.order.base.AbstractDianlanServiceOrder;
import info.peigen.hotpot.component.gateway.dianlan.facade.enums.DianlanChargingPortInsertStatus;
import info.peigen.hotpot.component.gateway.dianlan.facade.enums.DianlanChargingPortReturnStatus;
import info.peigen.hotpot.component.gateway.dianlan.facade.enums.DianlanChargingStatus;
import info.peigen.hotpot.component.gateway.dianlan.facade.enums.DianlanHardwareFailure;
import jakarta.validation.constraints.NotEmpty;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

/**
 * <b>(DianlanStatusOrder)</b>
 *
 * @author czj
 * @version 1.0.0
 * @since 2022/11/21
 */
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@Data
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class DianlanStatusOrder extends AbstractDianlanServiceOrder {
    @NotEmpty
    String stubNo;
    @NotEmpty
    String transNo;
    /** 充电状态  ("00", "离线"),("01", "故障"),("02", "空闲"),("03", "充电"), */
    DianlanChargingStatus           chargingStatus;
    /** 枪是否归位 ("00", "否"),("01", "是"), */
    DianlanChargingPortReturnStatus returnStatus;
    /** 是否插枪  ("00", "否"),("01", "是"), */
    DianlanChargingPortInsertStatus insertStatus;
    /** 输出电压,精确到小数点后一位；待机置零 */
    String                          outputVoltage;
    /** 输出电流,精确到小数点后一位；待机置零 */
    String                          outputCurrent;
    /** 枪线温度；整形，偏移量-50: 待机置零 */
    String                          portLineTemperature;
    /** 枪线编码 没有置零 */
    String                          portLineNo;
    /** SOC 待机置零: 交流桩置零 */
    String                          soc;
    /** 电池组最高温度 整形，偏移量-50 ºC；待机置零；交流桩置零 */
    String                          batteryMaxTemperature;
    /** 累计充电时间 单位：min；待机置零 */
    String                          cumulativeChargingTime;
    /** 剩余时间 单位：min；待机置零、交流桩置零 */
    String                          timeRemaining;
    /** 充电度数 精确到小数点后四位；待机置零 */
    String                          chargingCount;
    /** 计损充电度数 精确到小数点后四位；待机置零,未设置计损比例时等于充电度数 */
    String                          lossChargingCount;
    /** 已充金额 精确到小数点后四位；待机置零,（电费+服务费）*计损充电度数 */
    String                          chargingAmount;
    /** 硬件故障 */
    DianlanHardwareFailure          hardwareFailure;
}